<?php
//include"admin/connecsi.php";

echo "<select name='daftar_id' id='daftar_id'>";
$tampil=mysql_query("SELECT * FROM db_berobat ORDER BY ID_BEROBAT");
echo "<option> </option>";
while($w=mysql_fetch_array($tampil))
{
    echo "<option value='$w[ID_BEROBAT]'>$w[ID_BEROBAT]</option>";        
}
 echo "</select>";
?>